package com.maven.service.serviceImpl;

import com.maven.dao.UserMapper;
import com.maven.model.User;
import com.maven.reset.WSRequestResult;
import com.maven.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by 毕文涛 on 2017-08-11.
 */
/*@Service("UserService")*/
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override

    public WSRequestResult getUserById(Integer userId) {
        return new WSRequestResult(10000,"成功",this.userMapper.selectByPrimaryKey(userId));
    }

    @Override
    public void save(String arg) {
        System.out.println("保存数据"+arg);
    }
}
